
 View  = function(entity)
{
	this.m_Entity				=	entity;
	this.m_ViewMatrix			= 	new Matrix4();	/*!< Store the View Matrix			*/
	this.m_ProjectionMatrix		=	new	Matrix4();	/*!< Store the projection Matrix	*/
	
	if(this.m_Entity!=undefined
	)
	{
	this.m_ViewMatrix=this.m_Entity.m_Transform.SetPosition(2);
	}
}

View.New	=	function()
{
	View.Default = new View();
	View.Default.m_ProjectionMatrix = Matrix4.Ortho(-250,250, -250, 250, 0, 10);
}

View.prototype.LookAt=	function()
{

}

View.prototype.Move	=	function(x, y)
{
	this.m_Entity.m_Transform.SetPosition(this.m_Entity.m_Transform.GetPosition().x + x, this.m_Entity.m_Transform.GetPosition().y - y, 0);
	this.m_ViewMatrix					=	this.m_Entity.m_Transform.m_PositionMatrix;
}

View.Views	=	new Array();	/*!< Store all Initialized views	*/
View.Default;					/*!< Store the default view			*/